package com.pt25.service.sys.interfaces.vo.config;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.pt25.base.util.JsonUtil;
import com.pt25.base.util.PageUtil;
import com.pt25.service.sys.domain.config.ddo.ConfigLog;
import lombok.*;

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(
    callSuper = true
)
public class ConfigLogVo extends PageUtil.PageBase {
  @JsonFormat(
      shape = JsonFormat.Shape.STRING
  )
  private Long id;

  @JsonFormat(shape = JsonFormat.Shape.STRING)
  private Long configValueId;

  private String dataKey;

  private String valueKey;

  private String valueContent;

  private String manipulateType;

  private String tenantId;

  public ConfigLog toConfigLog() {
    return JsonUtil.toBean(JsonUtil.toJson(this), ConfigLog.class);
  }
}
